projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07e9b39
)
notebook: Update arrow state when switching pages
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 24 Aug 2016 18:10:35 +0000
(14:10 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 24 Aug 2016 18:10:35 +0000
(14:10 -0400)
Otherwise, we may end up showing clickable arrows that don't
do anything.
https://bugzilla.gnome.org/show_bug.cgi?id=770332
gtk/gtknotebook.c
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index 4452fc64bcc4d8423f89743d295b456514cfb8af..60f4b1505e25d3da7b2c0b19091cf7c8d9a60b2a 100644
(file)
--- a/
gtk/gtknotebook.c
+++ b/
gtk/gtknotebook.c
@@
-6202,6
+6202,9
@@
gtk_notebook_real_switch_page (GtkNotebook *notebook,
gtk_widget_grab_focus (GTK_WIDGET (notebook));
}
+ if (priv->scrollable)
+ gtk_notebook_redraw_arrows (notebook);
+
gtk_widget_queue_resize (GTK_WIDGET (notebook));
g_object_notify_by_pspec (G_OBJECT (notebook), properties[PROP_PAGE]);
}